package client;

import Controller.IController;
import View.IView;
import Model.Application.IModel;
import Controller.Controller;
import View.View;
import Model.Application.ApplicationClient;
import Share.Protocole.InterfaceProtocole;
import Model.Protocole.ProtocoleClient;
import Share.Transport.Exception.ConnectTransportException;
import Share.Transport.InterfaceTransport;
import Share.Transport.Transport;
import java.io.IOException;

/**
 *
 * @author SpAdE
 */
public class Client {

    public static void main(String[] args) throws IOException {
        // TODO code application logic here
        InterfaceProtocole iProt;
        InterfaceTransport iTrans;
        IModel iApp;


        IView V;
        IController C;

        //creationdes des differentes couches et de leur dépendances 
        iTrans = new Transport();
        iProt = new ProtocoleClient(iTrans);


        iApp = new ApplicationClient(iProt);
        //iApp = new ApplicationServer(iProt);

        V = new View();
        C = new Controller(iApp, V);
        C.init();

    }
}
